#!/bin/bash

echo ""
echo "========================================"
echo "    向量测试工具启动脚本"
echo "========================================"
echo ""

cd "$(dirname "$0")"

echo "🔧 检查Go环境..."
if ! command -v go &> /dev/null; then
    echo "❌ 未找到Go环境，请先安装Go语言"
    echo "📥 下载地址: https://golang.org/dl/"
    exit 1
fi

echo "✅ Go环境检查通过"

echo ""
echo "🚀 启动向量测试工具..."
echo "📱 启动后请访问: http://localhost:8080"
echo "💡 按 Ctrl+C 停止服务"
echo ""

go run .